package com.aia.prm.web.json;

import org.apache.log4j.Logger;

import com.aia.prm.service.DefaultService;
import com.cfh.util.Tools;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class PrmZanJson extends ActionSupport {
	private static final Logger logger = Logger.getLogger(PrmZanJson.class);

	private String id;
	private DefaultService defaultService;
	public void validate() {
	}

	public String execute() throws Exception {
		try {
			if (logger.isDebugEnabled()) {
				logger.debug("PrmForm1Json - start"); //$NON-NLS-1$
			}
			
			defaultService.PrmZanJson(this);
			
			if (logger.isDebugEnabled()) {
				logger.debug("PrmForm1Json - end"); //$NON-NLS-1$
			}
			
			return Tools.smartReturn((ActionSupport) this);
		} catch (Exception e) {
			logger.error("Unknown Error:" + e, e);
			throw new RuntimeException(e);
		}
	}


	public DefaultService getDefaultService() {
		return defaultService;
	}

	public void setDefaultService(DefaultService defaultService) {
		this.defaultService = defaultService;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}
